<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions" xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" targetNamespace="TestProcess">

  <message id="message1" name="Message 1"/>
  <message id="message2" name="Message 2"/>

  <process id="testProcess" isExecutable="true">
    <startEvent id="theStart"/>
    <sequenceFlow sourceRef="theStart" targetRef="fork"/>

    <parallelGateway id="fork"/>
    <sequenceFlow sourceRef="fork" targetRef="waitState1"/>
    <sequenceFlow sourceRef="fork" targetRef="waitState2"/>

    <receiveTask id="waitState1" name="Wait State 1" messageRef="message1"/>
    <sequenceFlow sourceRef="waitState1" targetRef="join"/>

    <receiveTask id="waitState2" name="Wait State 2" messageRef="message2"/>
    <sequenceFlow sourceRef="waitState2" targetRef="join"/>

    <parallelGateway id="join"/>
    <sequenceFlow sourceRef="join" targetRef="theEnd"/>
    <endEvent id="theEnd"/>
  </process>

</definitions>